package com.example.demo.Service;

import com.example.demo.Entity.*;
import java.util.List;

public interface ResumeService {
    // 用户基本信息操作
    PersonalInfo getUser(Long id);
    List<PersonalInfo> getAll();
    void updateavatar(String avatar_path, Long id);
    void insertUser(PersonalInfo personalInfo);
    void deleteUser(Long id);
    void updateUser(PersonalInfo personalInfo, Long id);

    // 教育背景操作
    List<Education> getEducations(Long userId);
    void updateEducations(Long userId, List<Education> educations);
    void addEducation(Education education);
    void deleteEducation(Long educationId);

    // 工作经历操作
    List<WorkExperience> getWorkExperiences(Long userId);
    void updateWorkExperiences(Long userId, List<WorkExperience> workExperiences);
    void addWorkExperience(WorkExperience workExperience);
    void deleteWorkExperience(Long workExperienceId);

    // 校园经历操作
    List<CampusExperience> getCampusExperiences(Long userId);
    void updateCampusExperiences(Long userId, List<CampusExperience> campusExperiences);
    void addCampusExperience(CampusExperience campusExperience);
    void deleteCampusExperience(Long campusExperienceId);

    // 技能证书操作
    List<Skill> getSkills(Long userId);
    void updateSkills(Long userId, List<Skill> skills);
    void addSkill(Skill skill);
    void deleteSkill(Long skillId);

    // 自我评价操作
    Evaluation getEvaluation(Long userId);
    void updateEvaluation(Evaluation evaluation);
}